package common.interceptor;


import common.constant.TokenConstant;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @Author: 郑国荣
 * @Date: 2024-03-05-19:33
 * @Description: 通信拦截器
 */
public class CommunicationInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        // 独立设置参数
        template.header(TokenConstant.FILTER_KEY_NAME, TokenConstant.FILTER_KEY_VALUE);
    }
}
